import request from '@/plugins/request';
// 岗位列表
export function jobList(data) {
    return request({
      url: "/v1/job/list",
      method: "get",
      params: data,
    });
}
  
  //新增岗位
export function createJob(data) {
    return request({
        url: "/v1/job/create",
        method: "post",
        data,
    });
}

//删除岗位
export function deleteJob(data) {
    return request({
        url: "/v1/job/delete",
        method: "post",
        data,
    });
}

// 岗位详情
export function jobInfo(data) {
    return request({
      url: "/v1/job/info",
      method: "get",
      params: data,
    });
}
  
//编辑岗位
export function updateJob(data) {
    return request({
        url: "/v1/job/update",
        method: "post",
        data,
    });
}